﻿using System;
using Abp.Domain.Entities.Auditing;
using JetBrains.Annotations;

namespace Camc.Quality.CodeFormat
{
    public class CodeFormatRuleDesc : FullAuditedEntity<Guid>
    {
        /// <summary>
        ///     条码基础信息ID
        /// </summary>
        public Guid CodeFormatId { get; set; }

        /// <summary>
        ///     规则类型0：常量、1：日期格式、2：流水号
        /// </summary>
        public RuleKey RuleKey { get; set; }

        /// <summary>
        ///     规则内容
        /// </summary>
        [CanBeNull]
        public string RuleValue { get; set; }

        /// <summary>
        ///     规则顺序
        /// </summary>
        public string RuleSort { get; set; }
    }
}